﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HiSport.Core.Entity.HiSportEntity.Bas
{
    /// <summary>
    /// 场地锁定
    /// </summary>
    [SugarTable(null, "场地锁定")]
    public  class BaseSiteLock: EntityBaseData
    {
        /// <summary>
        /// 锁定时间
        /// </summary>
        [SugarColumn(ColumnDescription = "锁定时间", IsNullable = false)]
        public DateTime LockTime { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        [SugarColumn(ColumnDescription = "开始时间", Length = 20, DefaultValue = "")]
        [Required, MaxLength(20)]
        public string StartTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        [SugarColumn(ColumnDescription = "结束时间", Length = 20, DefaultValue = "")]
        [Required, MaxLength(20)]
        public string EndTime { get; set; }

        /// <summary>
        /// 场地
        /// </summary>
        [SugarColumn(ColumnDescription = "场地", DefaultValue = "0", IsNullable = false)]
        public long SiteId { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDescription = "备注", DefaultValue = "", IsNullable = true)]
        [ MaxLength(300)]
        public string Remark { get; set; }
    }
}
